package com.example.tests;

import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.assertThat;

import org.testng.annotations.Test;

import com.example.fw.User;



public class DeleteUser extends TestBase {
	
	User user = new User().setLogin("testuser1").setPassword("123456")
			.setEmail("testuser1@localhost.localdomain");
	
	User admin = new User().setLogin("administrator")
			.setPassword("root");
	
	@Test
	public void deleteUserTest() {
		app.getAccountHelper().login(admin);
		assertThat(app.getAccountHelper()
				.loggedUser(admin), equalTo(admin.login));
		app.getNavigationHelper().goToManageUsersSection();
		app.getAdminHelper().deleteUser(user);
		
	}
	

}
